const express = require('express')
const router = express.Router();
const authorizationHandler = require('../router_handler/authorization.js')

router.get('/rights/:type', authorizationHandler.getRights)

router.get('/roles', authorizationHandler.getRoles)

router.post('/roles/:roleId/rights', authorizationHandler.setRolesRights)

module.exports = router